﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ZLCMS.Web.Wap.Shop.Default" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" ng-app="MyIndex">
<head>
<title>DV.生活商城，正品保证，全省包邮</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0 ,user-scalable=no">
<link href="/Wap/lib/bootstrap/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/Wap/lib/Swiper/css/swiper.min.css" rel="stylesheet" type="text/css" />
<link href="css/boots.css?v=20171124002" rel="stylesheet" type="text/css" />
<!-- <link href="css/doubleeleven.css" rel="stylesheet" type="text/css" /> -->
</head>
<body>
    <nav-list></nav-list>
    <div ui-view></div>
    <footer-list></footer-list>
<%-- 
     //外增导航按钮   
    <div class="dianqinglogo" onclick="window.location.href='http://localhost:3028/Mass/170530duanwujie/Default.aspx?id=319'"></div> --%>
    <%-- //首页弹窗--%>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop=”static”>
	    <div class="modal-dialog">
		    <div class="modal-content">
                <div class="modal-body">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				    <img src="" />
			    </div>
		    </div>
	    </div>
    </div>

<script type="text/javascript">
    var shareUrl = window.location.href; //分享链接,当前页面
    var shareTitle = window.document.title; //分享标题
    var shareLogo = '<%=ServerUtil.GetRootURI() %>/wap/shop/images/shop_logo.jpg'; //分享图标
    var shareDesc = '<%= ParamKit.GetValue("SystemConfig", "Desciption", "&nbsp") %>'; //分享描述
</script>
<%=ZLCMS.Business.WeixinService.JSSDKUtil.GetConfigScript()%>
<script type="text/javascript" >

        var isWifi = false;
        wx.ready(function () {
            wx.onMenuShareTimeline({
                title: shareTitle, // 分享标题
                link: shareUrl, // 分享链接
                imgUrl: shareLogo, // 分享图标
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
            wx.onMenuShareAppMessage({
                title: shareTitle, // 分享标题
                desc: shareDesc, // 分享描述
                link: shareUrl, // 分享链接
                imgUrl: shareLogo, // 分享图标
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
            wx.getNetworkType({
                success: function (res) {
                    var networkType = res.networkType; // 返回网络类型2g，3g，4g，wifi

                    if (networkType == "wifi") {
                        isWifi = true;
                    }

                    $(document).triggerHandler('getNetworkType', { type: networkType });
                    //alert(networkType);

                }
            });

        });
    </script>

<script>
    var _hmt = _hmt || [];
</script>
<!--#include file="/Code/StatCode/baidustat.inc" -->

<script src="../lib/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="../lib/jquery/jquery.cookie.js" type="text/javascript"></script>
<script src="../lib/jquery-countdown/dist/jquery.countdown.min.js" type="text/javascript"></script>
<script src="/Wap/lib/bootstrap/bootstrap.js"></script>
<script src="../../assets/plugins/angular/angular-1.6.1.min.js" type="text/javascript"></script>
<script src="/Wap/lib/bootstrap/ng-infinite-scroll.js" type="text/javascript"></script>
<!--<script src="/Wap/lib/jquery_lazyload/jquery.lazyload.min.js" type="text/javascript"></script>-->
<script src="../lib/jquery_lazyload/jquery.scrollLoading.js" type="text/javascript"></script>
<!--<script src="//code.angularjs.org/snapshot/angular-route.js"></script>-->
<script src="../lib/Swiper/js/swiper.min.js" type="text/javascript"></script>
<script src="../../assets/plugins/angular/angular-ui-router.min.js" type="text/javascript"></script>
<script src="script/app.js?v=20171115001" type="text/javascript"></script>
<script src="script/controllers.js?v=20171222003" type="text/javascript"></script>
<script src="script/directives.js?v=20171114" type="text/javascript"></script>
<script src="script/services.js?v=20171111" type="text/javascript"></script>

<script>
    window._hmt = window._hmt || [];
    $(document).ready(function () {
        var path = 'default|path|' + document.URL + '|' + document.referrer;
        _hmt.push(['_trackEvent', path, 'enter', 'default']);
        _hmt.push(['_trackEvent', 'page', 'view', 'default']);
    });
//    首页弹窗
    function LoadAlelt(item) {
        var now = new Date();
        var key = "DayCheakIn" + now.getFullYear().toString() + (now.getMonth() + 1).toString() + now.getDate().toString();
        var CheakIn = $.cookie(key);
        if (CheakIn == 'false' || CheakIn === null) {
            $('#myModal img').attr('src', item.PhotoUrl).click(function () {
                var path = 'default|' + item.PositionCode + '|' + item.Id; //路径
                _hmt.push(['_trackEvent', path, 'click', item.Title])
                window.location.href = item.Url;
            });
            $('#myModal').modal({
                backdrop: 'static', keyboard: false
            });
            $.cookie(key, true, { expires: 1 });
        }
    };
</script>
</body>
</html>